package test.synchronize;

/**
 * Created by linshuo on 2018/4/13.
 */
public class StaticLock {
    public static synchronized void play() {
        try {
            System.out.println("a");
            Thread.sleep(500);
            System.out.println("b");
            Thread.sleep(500);
            System.out.println("c");
            Thread.sleep(500);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
